package com.zsj.exception;

import com.zsj.enums.ErrorCodeEnum;
import lombok.Data;

/**
 * @Description:
 * @Author:
 * @Date:
 */
@Data
public class BusinessException extends RuntimeException {

    private ErrorCodeEnum errorCodeEnum;

    public BusinessException() {

    }

    public BusinessException(ErrorCodeEnum errorCodeEnum) {
        super(errorCodeEnum.getMsg());
        this.errorCodeEnum = errorCodeEnum;
    }
}
